# Contributor: Stefan Wagner <stw@bit-strickerei.de>
# Maintainer: Stefan Wagner <stw@bit-strickerei.de>
pkgname=py3-u-msgpack
_pyname=u-msgpack-python
pkgver=2.8.0
pkgrel=0
pkgdesc="portable, lightweight MessagePack serializer and deserializer written in pure Python."
url="https://github.com/vsergeev/u-msgpack-python"
arch="noarch"
license="MIT"
checkdepends="py3-pytest"
makedepends="py3-setuptools"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/vsergeev/$_pyname/archive/v$pkgver.tar.gz"
builddir="$srcdir/$_pyname-$pkgver"

replaces="py-u-msgpack" # Backwards compatibility
provides="py-u-msgpack=$pkgver-r$pkgrel" # Backwards compatibility

build() {
	python3 setup.py build
}

check() {
	python3 setup.py test
}

package() {
	python3 setup.py install --skip-build --root="$pkgdir"
}

sha512sums="
1b1e3e4b649676571ad32a757a0b4033d049d847fee70ceb0a9fc390d6162f2777cce9560845faa949343d7a4fafbf175ce306d71c66744c13a5c3c20e8260ee  py3-u-msgpack-2.8.0.tar.gz
"
